package top.huhuiyu.springboot3.service;

public interface RedisService {
    Boolean has(String key);

    void remove(String key);

    <T> void save(String key, T value);

    <T> void save(String key, T value, long timeout);

    <T> void update(String key, T value);

    <T> T get(String key, Class<T> clazz);
}
